#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>

namespace snip
{
template <typename Iter>
std::string bytes_to_hexstr(Iter begin, Iter end, const bool uppercase = false)
{
    static_assert(std::is_integral<
                      typename std::iterator_traits<Iter>::value_type>::value,
                  "Iterator shall be pointing to integral type");
    std::stringstream ss;
    if (uppercase)
    {
        ss.setf(std::ios::uppercase);
    }
    while (begin != end)
    {
        ss << std::hex << std::setw(2) << std::setfill('0')
           << static_cast<int>(*begin);
        ++begin;
    }
    return ss.str();
}

}  // namespace snip

using namespace std;
int main(int argc, char** argv)
{
    int num = 0;
    vector<int> numarr;
    while (cin >> num)
    {
        numarr.push_back(num);
    }
    cout << snip::bytes_to_hexstr(numarr.begin(), numarr.end(), true) << '\n';
    return 0;
}